<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<include file="./Home/Tpl/Admin/Common/cssjs.html" />
</head>
<body>
<div class="subnav">
  <div class="content-menu ib-a blue line-x"> <a class="add fb" href="{:U("Contents/Position/add")}"><em>添加推荐位</em></a> <a href='{:U("Contents/Position/index")}' class="on"><em>推荐位管理</em></a> </div>
</div>
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<form name="myform" action="{:U("Contents/Position/public_item")}" method="post">
  <div class="pad_10">
    <div class="table-list">
      <table width="100%" cellspacing="0">
        <thead>
          <tr>
            <th width="10%"  align="left"><input type="checkbox" value="" id="check_box" onclick="selectall('items[]');"></th>
            <th width="10%"  align="left">排序</th>
            <th width="10%"  align="left">ID</th>
            <th width=""  align="left">标题</th>
            <th width="15%">栏目名称</th>
            <th width="15%">发表时间</th>
            <th width="15%">管理操作</th>
          </tr>
        </thead>
        <tbody>
          <volist name="data" id="vo">
            <tr>
              <td width="10%"><input type="checkbox" name="items[]" value="{$vo.id}-{$vo.modelid}" id="items" boxid="items"></td>
              <td width="10%"><input name='listorders[{$vo.catid}-{$vo.id}]' type='text' size='3' value='{$vo.listorder}' class="input-text-c"></td>
              <td width="10%"  align="left">{$vo.id}</td>
              <td width=""  align="left">{$vo.data.title} </td>
              <td  width="15%" align="center">国内新闻</td>
              <td width="15%" align="center">{$vo.data.inputtime|date="Y-m-d H:i:s",###}</td>
              <td width="15%" align="center"><a href="{$vo.data.url}" target="_blank">原文</a> | <a onclick="javascript:openwinx('{:U("Contents/Content/edit",array("catid"=>$vo['catid'],"id"=>$vo['id']  ))}','')" href="javascript:;">原文编辑</a> | <a href="javascript:item_manage({$vo.id},{$vo.posid}, {$vo.modelid},'{$vo.data.title}')">信息管理</a></td>
            </tr>
          </volist>
        </tbody>
      </table>
      <div class="btn">
        <label for="check_box">全选/取消</label> 
        <input type="hidden" value="{$posid}" name="posid">
        <input type="button" class="button" value="排序" onclick="myform.action='{:U("Contents/Position/public_item_listorder")}';myform.submit();"/> 
        <input type="submit" class="button" name="dosubmit" value="移出" />
      </div>
    </div>
    <div id="pages"> </div>
  </div>
  </div>
</form>
<script type="text/javascript">
function item_manage(id, posid, modelid, name) {
	art.dialog.open("{$Config.siteurl}index.php?a=public_item_manage&m=Position&g=Contents&id="+id+"&modelid="+modelid,{
		title: '修改--' + name,
		id: 'edit',
		width: '600px',
		height: '430px',
		ok:function(){
			var iframe = this.iframe.contentWindow;
            var form = iframe.document.getElementById('dosubmit');
			form.click();
			return false;
		},
		cancel: true
	});
}
</script>
</body>
</html>